<?php
/**
 * Created by Eric-Nothing
 * User: Eric-Nothing
 * Date: 2019-03-14
 * Time: 23:34
 */

require_once __DIR__.'/../init.php';

$route= $request->getPathInfo();

$route = ltrim($route,'/');

list($module,$controller,$aciton)= explode('/',$route);

$route = 'App\\Controllers\\'.$module.'\\'.$controller;
$direct = new  $route;
call_user_func([$direct, $aciton]);

$response->prepare($request);

$response->send();
